<!-- 会员登录及登录入的个人面板 -->
<php>if(C('MEMBER_SYSTEM')){</php>
<div>
<nosession name="uid">
<div class="global_sub">会员登录</div>
<div class="border_no_top">
	<div align="center">
	<table>
	<php>if(C('PASSPORT')){</php>
        <form method="post" id="indexLoginForm" action="__APP__/Passport_{&PASSPORT_TYPE}/checklogin" onSubmit="return logincheck();"/>
    <php>}else{</php>
        <form method="post" id="indexLoginForm" action="__APP__/Public/checklogin" onSubmit="return logincheck();"/>
    <php>}</php>
	<tr>
		<td width="40px" align="right" height="30px">账号：</td>
		<td><input type="text" name="username" id="username" class="userlogin_out" onmouseover="this.className='userlogin_over'" onmouseout="this.className='userlogin_out'" /></td>
	</tr>
	<tr>
		<td align="right" height="30px">密码：</td>
		<td><input type="password" name="password" id="password" class="userlogin_out" onmouseover="this.className='userlogin_over'" onmouseout="this.className='userlogin_out'" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><input type="image" src="../Public/images/login.gif" style="border:0px;" />
			<a href="{:url('reg','Public')}"><img src="../Public/images/register.gif" border="0"></a></td>
	</tr>
	</form>
	</table>
	</div>
</div>
</nosession>
<session name="uid">
<div class="global_sub">会员中心</div>
<div class="border_no_top">
	<div align="left">
	<table>
	<tr>
		<td width="100%" align="left" height="30px">用户名：{$userInfo.username}</td>
	</tr>
	<tr>
		<td align="left" height="30px"><eq name="userInfo.type" value="a"><a href="__ROOT__/admin.php" target="_blank">【后台管理】</a>&nbsp;-&nbsp;</eq>【会员中心】</td>
	</tr>
	<tr>
		<td align="left" height="30px"><a href="{:url('logout','Public')}">【退出登录】</a></td>
	</tr>
	</form>
	</table>
	</div>
</div>
</session>

<script type="text/javascript">
function logincheck()
{
	var username = $("username").value;
	var password = $("password").value;
	if(username == "")
	{
		alert("会员账号为空,请填写");
		$("username").focus();
		return false;
	}
	if(password == "")
	{
		alert("会员密码为空！");
		$("password").focus();
		return false;
	}
	$("loginsubject").disabled=true;
}
</script>
</div>
<div class="space_between"><div class="space_between"></div></div>
<php>}</php>